package panelTests;

import java.awt.BorderLayout;

import javax.swing.JFrame;

import panelSites.ContentPanel;
import panelSites.StatusPanel;
import panelSites.SubjectPanel;

public class PanelTestClass extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5569397223579895900L;

	public void testPanelTestClass() {
		JFrame frame = new JFrame();
		// Main Frame
		frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
		frame.setSize(650, 450);
		frame.setLayout(new BorderLayout());
		SubjectPanel ifacePanel = new SubjectPanel("PanelText");
		frame.add(ifacePanel, BorderLayout.CENTER);
		frame.setVisible(true);
	}
	
	public void testStatusPanelTestClass() {
		JFrame frame = new JFrame();
		// Main Frame
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		frame.setSize(650, 450);
		frame.setLayout(new BorderLayout());
		StatusPanel ifacePanel = new StatusPanel(null);
		frame.add(ifacePanel, BorderLayout.CENTER);
		frame.setVisible(true);
	}
	
	public void testCPanelTestClass() {
		JFrame frame = new JFrame();
		// Main Frame
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		frame.setSize(650, 450);
		frame.setLayout(new BorderLayout());
		ContentPanel ifacePanel = new ContentPanel("PanelText mit mehreren \n Zeilen");
		frame.add(ifacePanel, BorderLayout.CENTER);
		frame.setVisible(true);
	}
	
	public static void main(String[] args) {
		PanelTestClass p = new PanelTestClass();
		//p.testCPanelTestClass();
		//p.testPanelTestClass();
		p.testStatusPanelTestClass();
	}
}
